﻿using Microsoft.EntityFrameworkCore;
using MyTodo.Api.Entities;

namespace MyTodo.Api.Context;

public class MyToDoContext : DbContext
{
    public MyToDoContext(DbContextOptions<MyToDoContext> options)
        :base(options)
    {

    }
    /*
     Add-Migration
     Bundle-Migration
     Drop-Database
     Get-DbContext
     Get-Migration
     Optimize-DbContext
     Remove-Migration
     Scaffold-DbContext
     Script-Migration
     Update-Database
     */
    public DbSet<User> Users { get; set; } = null!;
    public DbSet<ToDo> ToDos { get; set; } = null!;
    public DbSet<Memo> Memos { get; set; } = null!;
}
